Today I'm going to create a beam that's going to point me to the lot.
If I own a lot.
So there's going to be a lot of these lots.
I enter the game.
I own one.
Which one is mine?
Oh, I'll just follow the beam.
And then when I get to my lot, the beam will disappear.
And then we'll also have a time out because you might not want to go to the lot.
You might want to run around and kill monsters or something.
So let's go ahead and get started with that.
All right.
To make our beam, let's go to the workspace, open that up, go to our lot collection, open this up
then on the player lot, which we're going to duplicate, make a lot of them, but we only have one
now.
Open that and then we have a part that we called lot.
That's the actual gray part that looks like a lot on the lot.
I need two attachments for my beam, so I'm going to hit the plus sign, hit an A, get an attachment
and I'm going to call this one at zero.
All right.
I'm going to do it again.
Or actually, I'll just duplicate it.
Control D.
And we got a second one at one.
Now I need a beam.
Go to my lot.
Hit the plus.
Hit a B for beam.
There's our beam.
We can't see the beam because we didn't attach it to the attachments.
Let's get our at zero, which is going to be the start of the beam.
Hit the move and I'm going to drag it back to where I want the beam to start.
There we go.
That's pretty good.
Doesn't have to be perfect.
And now get the beam itself.
And I'm going to scroll down to where it says Attachment zero, Click to the right of that, click at
zero, Attachment one, click at one.
All right.
Now, if you'll notice, sometimes we can't see the beam we need to hit.
Face camera.
It's down here on the bottom.
Face camera.
There we go.
Now, when we move around, we can see the beam no matter where we're at.
And that's good because this is going to be seen only by the player who owns the lot.
So it's going to be a client side event.
All right.
Now, on segments, I want to get a curve on my beam.
So I'm going to increase the segments a little bit, maybe to 20 double it, I guess that's not a little
bit.
And then on curve size zero above where it says segments.
I am going to make that 25.
And what that's doing, it's going to the attachment zero.
Going 25 studs in this direction and we're going to put a bend point there for a curve.
It's called a bezier curve.
It's not really important that you understand bezier curves.
We're just going to add a curve and you can play around with it and see the effects.
Let's do that.
Same thing to curve size one.
And you're like, Oh man, I didn't change at all.
Well, that's all right.
We have one more thing to do for that, for that changing of the curve hit at zero.
Hit not scale, but rotate.
And let's just bend this up like 15 degrees.
Let's go to at one bend that up.
15 degrees.
I have one seven and one half degree increment snaps and now we've got a nice little bend.
So you can play with that, play with that curve size zero curve size one and see what it does.
That way you can understand what the Bezier curves are doing.
You don't have to understand the mathematics behind it.
All right, let's go to the beam.
Let's go up, change the color.
Maybe.
Maybe like a maybe like a yellow.
Like a light yellow.
And you can get color gradients too.
But what I want to do is I'm going to get the sparkle from the particle emitters.
I use that as the texture and you can play around with textures too, but let's just do that with the
sparkles.
So I'm going to go to Lot.
Hit the plus hit a P for particle emitter and we got some sparkles coming out.
Let's click on our particle emitter and steal the sparkles.
So go down to your texture, make this a little bigger.
And we have our default sparkles texture here.
I'm going to double click that.
So it's all selected.
Do a control C to copy it.
I'm going to go back.
To my beam and then go to texture control.
V hit enter.
Ooh.
Now we got something different.
It doesn't really look like a sparkle.
I'm going to get rid of my particle emitter.
I don't really need it.
I just wanted the.
I wanted the texture.
Texture.
All right, let's make that beam look a little better.
Let's click the beam, and I'm going to go down to texture length.
I'm going to increase the size so you can play around with this, too.
All right.
Now we've got things that look a little more sparkle like.
I'm going to go to texture, speed, maybe make that a three.
If you make it a negative value, it goes the other way.
A transparency.
I might make it a little more transparent instead of 0.5, which is the default, I'll make a 0.7.
And let's keep going down.
Oh, the width.
I'm going to make it a little thicker instead of width.
Zero one.
We'll make that a two.
If you make one side bigger than the other, it'll get it'll get smaller.
It'll shrink as you go out.
But I'm going to make them both the same size to on width, zero and width one.
Nice.
All right.
So this is now something that can be seen by all the players.
It's a server side thing.
We want to make this a client side thing.
So on this beam, I'm going to scroll up to where it says enabled and I'm going to disable it.
And then I'm going to turn it on with code for only the player that owns the lot.